package com.example.makerspace.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.makerspace.dto.BaseDTO;
import com.example.makerspace.mapper.MybatisListHandler;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@TableName(value = "t_stage_form", autoResultMap = true)
@Data
public class StageFormDO extends BaseDO {
    @ApiModelProperty(value = "先进成果申请表", required = true)
    @TableField(typeHandler = MybatisListHandler.class)
    @Field(name = "advanced_achievements", type = FieldType.Text, analyzer="ik_max_word")
    private   List<String>advancedAchievements;
    @TableField(typeHandler = MybatisListHandler.class)
    @ApiModelProperty(value = "先进需求表", required = true)
    @Field(name = "advanced_demand", type = FieldType.Text, analyzer="ik_max_word")
    private List<String> advancedDemand;
    @ApiModelProperty(value = "用户名", required = true)
    @Field(name = "username", type = FieldType.Text, analyzer="ik_max_word")
    private  String username;
    @ApiModelProperty(value = "公司名", required = true)
    @Field(name = "ent_name", type = FieldType.Text, analyzer="ik_max_word")
    private  String entName;
    @ApiModelProperty(value = "个人名", required = true)
    @Field(name = "personal_name", type = FieldType.Text, analyzer="ik_max_word")
    private  String personalName;
}
